package com.kb.design.util;

import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import com.kb.design.dto.DesignRequirementDTO;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.LoggerFactory;

import java.time.LocalDateTime;

/**
 * @Auther:chenzx
 * @Date:2024-03-15
 * @Description:通用
 */
public class CommonUtil {
    private static final org.slf4j.Logger log = LoggerFactory.getLogger(CommonUtil.class);
    public static void webLog(String method,Object text){
        log.info("{}，前端入参，方法是：{}，入参是：{}", LocalDateTime.now(),method, JSONUtil.toJsonStr(text));
    }
    public static void webLog2(String method,Object obj){
        log.info("{}，前端入参，方法是：{}，入参是：{}", LocalDateTime.now(),method, obj);
    }
}
